home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / workbench / visualprefs / install < prev    next >
Text File  |  1999-11-29  |  21KB  |  628 lines

  1. ;** $VER: VisualPrefsBeta_install 40.10 (7.5.97) by Nik Soggia <nsoggia@telnetwork.it>
  2. ;**
  3. ;** modified (17.5.97) by MT
  4. ;** modified (13.6.97) by MT
  5. ;** modified (19.7.97) by MT
  6. ;** modified (21.7.97) by MT
  7. ;** modified (24.7.97) by MT
  8. ;** modified (26.7.97) by MT
  9. ;** modified (19.10.97) by MT
  10. ;** modified (22.10.97) by MT
  11. ;** modified (12.5.98) by MT
  12. ;** modified (13.6.98) by MT
  13. ;** modified (25.12.98) by MT
  14. ;** modified (25.5.99) by MT
  15. ;**
  16. ;** requires:
  17. ;** - RexxMast, Rx, Search and Version commands
  18. ;** - T: and ENV: assignments for temporary files
  19.  
  20. ;************
  21. ;** CONSTANTS
  22.  
  23. ;******************************
  24. ;** MESSAGES (DEFAULT: ENGLISH)
  25.  
  26. (set msg_rx     "Installer is unable to locate the \"Rx\" command")
  27. (set msg_rxm    "Installer is unable to locate the \"RexxMast\" command")
  28. (set msg_rxp    "Please locate it:")
  29. (set msg_wait   "Checking installation")
  30. (set msg_vpi    "A copy of VisualPrefs is already installed")
  31. (set msg_vpn    "VisualPrefs is not installed")
  32. (set msg_dir    "A drawer WILL NOT be created")
  33. (set msg_seldr  "Select the destination drawer:")
  34. (set msg_selcpu "Select the version of VisualPrefs you want to install.")
  35. (set msg_gadget "Do you want to install the \"select.gadget\" class library?\nIt is needed for the cycle gadget \"pop-up\" feature to work.")
  36. (set msg_whdoc  "Where do you want to copy the documentation files?")
  37. (set msg_whgadg "Where do you want to copy the \"select.gadget\" library?")
  38. (set msg_lang   "What language catalogs do you want to install?")
  39. (set msg_cpu000 "68000")
  40. (set msg_cpu020 "68020/030")
  41. (set msg_cpu040 "68040")
  42. (set msg_cpu060 "68060")
  43. (set msg_l_ita  "Italiano")
  44. (set msg_icoo   "Normal icons")
  45. (set msg_icon   "NewIcons")
  46. (set msg_icom   "Magic WB")
  47. (set msg_icoi   "Iconographics")
  48. (set msg_icox   "No icons")
  49. (set msg_icop   "Select icon set")
  50. (set msg_exa    "Install example preferences?")
  51. (set msg_bm     "Install example bitmaps?")
  52. (set msg_whbm   "Where do you want to copy the example bitmap directories?")
  53. (set msg_pwb    "Install the PatchWB program?\nIt fixes a bug in IPrefs V39/V40 which could cause\nproblems with VisualPrefs and other programs.\nRead the help for more information.")
  54. (set msg_pwb2   "If you select \"Yes\", PatchWB will be copied\ninto your WBStartup drawer.")
  55. (set msg_advfp  "If you are using the FullPalette patch, you should make sure your FPPrefs program is at least version 40.20, or else the bitmap loading function of VisualPrefs won't function properly.\n\nYou can find FPPrefs 40.22 in this archive, in the \"Tools\" drawer.")
  56. (set msg_adv1   "If you are using other programs similar to VisualPrefs, you should uninstall them now.\nFailure to do so could result in system crashes due to conflicts between equivalent patches.\n\n")
  57. (set msg_adv2   "In particular, if you use MCP, please turn off its \"SysIHack\", \"FrameIHack\" and \"NewGadTools\" options, and also \"CycleToMenu\" if you want to use the cycle gadget \"pop-up\" patch of VisualPrefs.\n\n")
  58. (set msg_adv3   "In the case you still experience crashes, please read the \"Notes & hints\" section of the guide, which contains useful information about how to solve many common problems.")
  59. (set msg_done   "VisualPrefs will be available next time you boot.")
  60. (set msg_done2  "\n\nIf you use them, you should remove Prop3D and\nCenterTitles from your User-startup.")
  61. (set rxhelp     "Use the file requester to select the \"Rx\" program.")
  62. (set rxmhelp    "Use the file requester to select the \"RexxMast\" program.")
  63. (set dirhelp    "Select the drawer into which VisualPrefs is to be copied.\nIt should reside in the system command path.")
  64. (set dirhelp2   "Select the drawer into which the documentation is to be copied.\nThe default is the same drawer which VisualPrefs resides in.")
  65. (set dirhelp3   "Select the drawer into which the \"select.gadget\" library is to be copied.\nThe default is \"SYS:Classes/Gadgets\".")
  66. (set cpuhelp    "If you have an accelerated Amiga, you can choose to\ninstall a more optimized version of VisualPrefs and\nits preferences editor.")
  67. (set gadghelp   "The BOOPSI class library \"select.gadget\" is needed for the cycle gadget \"pop-up\" feature to work.\nIf you don't plan to use this feature, you can avoid installing it.")
  68. (set gadghelp2  "If you choose to install it, it will be copied into a directory of your choice.\nIn the case a newer version is already in place, it won't be overwritten.")
  69. (set langhelp   "Choose one or more languages for VisualPrefs and the GUI editor.\nYou can later select which one to use with the Locale preferences editor.")
  70. (set iconhelp   "Choose the style for the icons to be installed.")
  71. (set exahelp    "If you select \"Yes\", an example preferences file (preset) will be copied into your SYS:Prefs/Presets drawer.")
  72. (set bmhelp1    "This archive contains some sample bitmaps which can be used by VisualPrefs as symbols for system (screen and window) gadget images. They are organized in separate directories, one for each particular symbol style.\n\n")
  73. (set bmhelp2    "If you select \"Yes\", you will be asked where to install the bitmap directories found in the archive (and all of their contents).\n\nThe bitmaps need just a few KB of storage space.")
  74. (set bmhelp3    "Select the drawer into which the example bitmap directories are to be copied.")
  75. (set pwbhelp    "The IPrefs program which comes with AmigaOS 3.0 (V39) and 3.1 (V40) has a serious bug which sometimes causes a lock-up at the opening of the Workbench screen.")
  76. (set pwbhelp2   "If you experience such a problem when saving new preferences with the GUI editor, you should consider installing the supplied PatchWB program, which fixes it.")
  77. (set pwbhelp3   "However, the bug doesn't seem to affect all systems; if you never had the problem so far, please do NOT install this additional patch until you've verified it's really needed.")
  78. (set pwbhelp4   "Also, if you already use this patch, or if you use a newer (> V40) version of IPrefs, please skip this part.")
  79. (set pwbhelp5   "PatchWB is © 1998 Thomas Richter.")
  80. (set var_docd   "DocsEnglish")
  81. (set var_docr   "VisualPrefs.guide")
  82. (set var_doca   "VP-Developer.doc")
  83.  
  84. ;**********************
  85. ;** MESSAGES (ITALIANO)
  86.  
  87. (if (= @language   "italiano")(
  88.    (set msg_rx     "Installer non è in grado di trovare il comando \"Rx\"")
  89.    (set msg_rxm    "Installer non è in grado di trovare il comando \"RexxMast\"")
  90.    (set msg_rxp    "Per favore, localizzatelo:")
  91.    (set msg_wait   "Verifica installazione")
  92.    (set msg_vpi    "Una copia di VisualPrefs è già installata")
  93.    (set msg_vpn    "VisualPrefs non è installato")
  94.    (set msg_dir    "NON verrà creato alcun cassetto")
  95.    (set msg_seldr  "Scegliere il cassetto di destinazione:")
  96.    (set msg_selcpu "Scegliere la versione di VisualPrefs da installare.")
  97.    (set msg_gadget "Deve essere installata la libreria \"select.gadget\"?\nE` necessaria al funzionamento dell'opzione \"pop-up\" per i cycle gadget.")
  98.    (set msg_whdoc  "Dove volete che siano copiati i file della documentazione?")
  99.    (set msg_whgadg "Dove volete che sia copiata la libreria \"select.gadget\"?")
  100.    (set msg_lang   "Per quali lingue deve essere installato un catalog?")
  101.    (set msg_cpu000 "68000")
  102.    (set msg_cpu020 "68020/030")
  103.    (set msg_cpu040 "68040")
  104.    (set msg_cpu060 "68060")
  105.    (set msg_l_ita  "Italiano")
  106.    (set msg_icoo   "Normali")
  107.    (set msg_icon   "NewIcons")
  108.    (set msg_icom   "Magic WB")
  109.    (set msg_icoi   "Iconographics")
  110.    (set msg_icox   "Niente icone")
  111.    (set msg_icop   "Selezionare il set di icone")
  112.    (set msg_exa    "Installare preferenze di esempio?")
  113.    (set msg_bm     "Installare bitmap di esempio?")
  114.    (set msg_whbm   "Dove volete che siano copiate le directory di bitmap di esempio?")
  115.    (set msg_pwb    "Installare il programma PatchWB?\nCorregge un bug in IPrefs V39/V40 che può causare\nproblemi con VisualPrefs e altri programmi.\nLeggete l'aiuto per ulteriori informazioni.")
  116.    (set msg_pwb2   "Selezionando \"Sì\" PatchWB verrà copiato\nnel vostro cassetto WBStartup.")
  117.    (set msg_advfp  "Se usate il patch FullPalette, assicuratevi che il vostro programma FPPrefs sia almeno la versione 40.20, altrimenti la funzione di caricamento bitmap di VisualPrefs non funzionerà correttamente.\nTrovate FPPrefs 40.22 in questo archivio, nel cassetto \"Tools\".")
  118.    (set msg_adv1   "Se usate altri programmi simili a VisualPrefs dovreste disinstallarli ora.\nIn caso contrario potrebbero verificarsi dei crash di sistema dovuti a conflitti tra patch equivalenti.\n\n")
  119.    (set msg_adv2   "In particolare, se usate MCP, disattivate le sue opzioni \"SysIHack\", \"FrameIHack\" e \"NewGadTools\", nonché \"CycleToMenu\" se volete usare il patch \"pop-up\" di VisualPrefs per i cycle gadget.\n\n")
  120.    (set msg_adv3   "Nel caso si verifichino ugualmente dei crash, per favore leggete la sezione \"Note e suggerimenti\" della guida, che contiene utili informazioni su come risolvere molti problemi tipici.")
  121.    (set msg_done   "VisualPrefs sarà disponibile dopo il prossimo reboot.")
  122.    (set msg_done2  "\n\nSe li usate, dovreste rimuovere Prop3D e\nCenterTitles dalla vostra User-startup.")
  123.    (set rxhelp     "Usate il file requester per selezionare il programma \"Rx\".")
  124.    (set rxmhelp    "Usate il file requester per selezionare il programma \"RexxMast\".")
  125.    (set dirhelp    "Selezionare il cassetto in cui deve essere copiato VisualPrefs.\nDovrebbe trovarsi nel path dei comandi di sistema.")
  126.    (set dirhelp2   "Selezionare il cassetto in cui deve essere copiata la documentazione.\nIl default è lo stesso cassetto in cui si trova VisualPrefs.")
  127.    (set dirhelp3   "Selezionare il cassetto in cui deve essere copiata la libreria \"select.gadget\".\nIl default è \"SYS:Classes/Gadgets\".")
  128.    (set cpuhelp    "Se avete un Amiga accelerato potete scegliere di\ninstallare versioni più ottimizzate di VisualPrefs\ne del suo editor di preferenze.")
  129.    (set gadghelp   "La libreria di classe BOOPSI \"select.gadget\" è necessaria al funzionamento dell'opzione \"pop-up\" per i cycle gadget.\nSe prevedete di non usare tale opzione potete evitare di installarla.")
  130.    (set gadghelp2  "Se decidete di installarla essa verrà copiata in una directory scelta da voi.\nUn'eventuale versione più recente già presente non verrà sovrascritta.")
  131.    (set langhelp   "Scegliere una o più lingue per VisualPrefs e l'editor GUI.\nIn seguito si potrà scegliere quale usare con l'editor di preferenze Locale.")
  132.    (set iconhelp   "Scegliere lo stile per le icone da installare.")
  133.    (set exahelp    "Selezionando \"Sì\" verrà copiato un file di preferenze di esempio (preset) nel vostro cassetto SYS:Prefs/Presets.")
  134.    (set bmhelp1    "Questo archivio contiene alcune bitmap di esempio che possono essere usate da VisualPrefs come simboli per le immagini di sistema (schermi e finestre). Esse sono organizzate in directory separate, una per ogni particolare stile di simboli.\n\n")
  135.    (set bmhelp2    "Selezionando \"Sì\" vi verrà chiesto dove installare le directory di bitmap presenti nell'archivio (e il loro intero contenuto).\n\nLe bitmap richiedono solo pochi KB di spazio su disco.")
  136.    (set bmhelp3    "Selezionare il cassetto in cui devono essere copiate le directory di bitmap di esempio.")
  137.    (set pwbhelp    "Il programma IPrefs fornito con AmigaOS 3.0 (V39) e 3.1 (V40) ha un bug serio che a volte provoca un blocco all'apertura dello schermo Workbench.")
  138.    (set pwbhelp2   "Se riscontrate tale problema quando salvate le preferenze con l'editor GUI dovreste prendere in considerazione l'installazione del programma PatchWB, che lo corregge.")
  139.    (set pwbhelp3   "Tuttavia il bug non si manifesta su tutti i sistemi; se finora non avete mai avuto questo problema, NON installate questo patch aggiuntivo prima di avere verificato la sua effettiva necessità.")
  140.    (set pwbhelp4   "Se usate già questo patch oppure usate una versione più recente (> V40) di IPrefs, per favore saltate questa parte.")
  141.    (set pwbhelp5   "PatchWB è © 1998 di Thomas Richter.")
  142.    (set var_docd   "DocsItaliano")
  143.    (set var_docr   "VisualPrefs.guide")
  144.    (set var_doca   "VP-Developer.doc")
  145. ))
  146.  
  147. ;************************
  148. ;** LOCATE AREXX PROGRAMS
  149.  
  150. (if (= 1 (exists "sys:rexxc/rx" (noreq)))
  151.    (set var_rx "sys:rexxc/rx")
  152.    (if (= 1 (exists "c:rx" (noreq)))
  153.       (set var_rx "c:rx")
  154.       (set var_rx
  155.          (askfile
  156.             (default "SYS:RexxC/Rx")
  157.             (help rxhelp)
  158.             (prompt msg_rx ".\n\n" msg_rxp)
  159.          )
  160.       )
  161.    )
  162. )
  163.  
  164. (set var_rxm (tackon (pathonly var_rx) "rexxmast"))
  165.  
  166. (if (= 0 (exists var_rxm (noreq)))
  167.    (if (= 1 (exists "sys:rexxc/rexxmast" (noreq)))
  168.       (set var_rxm "sys:rexxc/rexxmast")
  169.       (if (= 1 (exists "c:rexxmast" (noreq)))
  170.          (set var_rxm "c:rexxmast")
  171.          (if (= 1 (exists "sys:system/rexxmast" (noreq)))
  172.             (set var_rxm "sys:system/rexxmast")
  173.             (set var_rxm
  174.                (askfile
  175.                   (default "SYS:System/RexxMast")
  176.                   (help rxmhelp)
  177.                   (prompt msg_rxm ".\n\n" msg_rxp)
  178.                )
  179.             )
  180.          )
  181.       )
  182.    )
  183. )
  184.  
  185. (run var_rxm)
  186.  
  187. ;******************************
  188. ;** CHECK PREVIOUS INSTALLATION
  189.  
  190. (working "(" msg_wait ")")
  191.  
  192. (delete "t:installvp.rx" (optional force) (safe))
  193. (textfile
  194.    (safe)
  195.    (dest "t:installvp.rx")
  196.    (append (cat
  197.       "/* filter */\n"
  198.       "\n"
  199.       "pull string\n"
  200.       "\n"
  201.       "comment=pos(';',string)\n"
  202.       "if comment~==0 then string=trim(left(string,comment-1))\n"
  203.       "say right(string,length(string)-lastpos(' ',string))\n"
  204.    ))
  205. )
  206.  
  207. (delete "t:installvp.sh" (optional force) (safe))
  208. (textfile
  209.    (safe)
  210.    (dest "t:installvp.sh")
  211.    (append (cat
  212.       "delete force t:installvp.out\n"
  213.       "\n"
  214.       "search >t:installvp.out search visualprefs S:Startup-sequence\n"
  215.       "if $RC eq 0\n"
  216.       "   setenv installvp_vp 1\n"
  217.       "   setenv installvp_vpp `" var_rx " <t:installvp.out t:installvp.rx`\n"
  218.       "else\n"
  219.       "   setenv installvp_vp 0\n"
  220.       "   setenv installvp_vpp \"\"\n"
  221.       "endif\n"
  222.       "delete t:installvp.out\n"
  223.       "\n"
  224.    ))
  225. )
  226.  
  227. (execute "t:installvp.sh" (safe))
  228. (delete "t:installvp.rx" (safe))
  229. (delete "t:installvp.sh" (safe))
  230.  
  231. (set var_vp (getenv "installvp_vp"))
  232. (set var_vpp (getenv "installvp_vpp"))
  233. (run "unsetenv installvp_vp")
  234. (run "unsetenv installvp_vpp")
  235.  
  236. (if (= 1 var_vp)
  237.    (
  238.       (set @default-dest (pathonly var_vpp))
  239.       (set msg_vp msg_vpi)
  240.    )
  241.    (set msg_vp msg_vpn)
  242. )
  243.  
  244. (complete 5)
  245.  
  246. (set no_break_warning
  247.    (askdir
  248.       (default @default-dest)
  249.       (help dirhelp)
  250.       (prompt (cat msg_vp ".\n" msg_dir ".\n\n" msg_seldr))
  251.    )
  252. )
  253. (set @default-dest (tackon no_break_warning ""))
  254.  
  255. (set docdir
  256.    (askdir
  257.       (default @default-dest)
  258.       (help dirhelp2)
  259.       (prompt (cat msg_whdoc "\n\n" msg_seldr))
  260.    )
  261. )
  262. (set docdir (tackon docdir ""))
  263.  
  264. ;*******************************
  265. ;** ASK INSTALLATION PREFERENCES
  266.  
  267. (complete 10)
  268.  
  269. (set var_cpu
  270.    (askchoice
  271.       (prompt msg_selcpu)
  272.       (help cpuhelp)
  273.       (choices msg_cpu000 msg_cpu020 msg_cpu040 msg_cpu060)
  274.    )
  275. )
  276.  
  277. (complete 12)
  278.  
  279. (set var_gadget
  280.    (askbool
  281.       (prompt msg_gadget)
  282.       (help (cat gadghelp "\n\n" gadghelp2))
  283.    )
  284. )
  285.  
  286. (if (= 1 var_gadget)(
  287.    (set gadgdir
  288.       (askdir
  289.          (default "SYS:Classes/Gadgets/")
  290.          (help dirhelp3)
  291.          (prompt (cat msg_whgadg "\n\n" msg_seldr))
  292.       )
  293.    )
  294.    (set gadgdir (tackon gadgdir ""))
  295. ))
  296.  
  297. (complete 14)
  298.  
  299. (set var_lang
  300.    (askoptions
  301.       (prompt msg_lang)
  302.       (help langhelp)
  303.       (choices msg_l_ita)
  304.       (default 1)
  305.    )
  306. )
  307.  
  308. (complete 16)
  309.  
  310. (set var_icon
  311.    (askchoice
  312.       (prompt msg_icop)
  313.       (help iconhelp)
  314.       (choices msg_icoo msg_icon msg_icom msg_icoi msg_icox)
  315.    )
  316. )
  317.  
  318. (complete 18)
  319.  
  320. (set var_exa
  321.    (askbool
  322.       (prompt msg_exa)
  323.       (help exahelp)
  324.    )
  325. )
  326.  
  327. (complete 19)
  328.  
  329. (set var_bm
  330.    (askbool
  331.       (prompt msg_bm)
  332.       (help (cat bmhelp1 bmhelp2))
  333.    )
  334. )
  335.  
  336. (if (= 1 var_bm)(
  337.    (set bmdir
  338.       (askdir
  339.          (default "SYS:Prefs/Presets/")
  340.          (help bmhelp3)
  341.          (prompt (cat msg_whbm "\n\n" msg_seldr))
  342.       )
  343.    )
  344.    (set bmdir (tackon bmdir ""))
  345. ))
  346.  
  347. (complete 20)
  348.  
  349. (set var_pwb
  350.    (askbool
  351.       (prompt msg_pwb "\n\n" msg_pwb2)
  352.       (help (cat pwbhelp "\n" pwbhelp2 "\n" pwbhelp3 "\n" pwbhelp4 "\n\n" pwbhelp5))
  353.    )
  354. )
  355.  
  356. ;*****************************
  357. ;** INSTALL FILES: VISUALPREFS
  358.  
  359. (complete 25)
  360.  
  361. (copyfiles
  362.    (source "VisualPrefs")
  363.    (dest "RAM:")
  364.    (newname "VP_000")
  365.    (safe)
  366. )
  367.  
  368. (if (= 0 var_cpu)(
  369.    (copyfiles (source "RAM:VP_000") (dest "RAM:") (newname "VP_0x0") (safe))
  370. ))
  371.  
  372. (if (= 1 var_cpu)(
  373.    (run "InstallTools/SPatch > NIL: -oRAM:VP_0x0 -pInstallFiles/VisualPrefs_020_030.pch RAM:VP_000" (safe))
  374. ))
  375.  
  376. (if (= 2 var_cpu)(
  377.    (run "InstallTools/SPatch > NIL: -oRAM:VP_0x0 -pInstallFiles/VisualPrefs_040.pch RAM:VP_000" (safe))
  378. ))
  379.  
  380. (if (= 3 var_cpu)(
  381.    (run "InstallTools/SPatch > NIL: -oRAM:VP_0x0 -pInstallFiles/VisualPrefs_060.pch RAM:VP_000" (safe))
  382. ))
  383.  
  384. (delete "RAM:VP_000" (safe))
  385.  
  386. (copyfiles
  387.    (source "RAM:VP_0x0")
  388.    (dest @default-dest)
  389.    (newname "VisualPrefs")
  390.    (infos) (noposition)
  391. )
  392.  
  393. (delete "RAM:VP_0x0" (safe))
  394.  
  395. ;***************************************
  396. ;** INSTALL FILES: SELECT.GADGET LIBRARY
  397.  
  398. (complete 30)
  399.  
  400. (if (= 1 var_gadget)(
  401.    (copylib
  402.       (source "InstallFiles/select.gadget")
  403.       (dest gadgdir)
  404.       (optional nofail)
  405.    )
  406. ))
  407.  
  408. ;*******************************
  409. ;** INSTALL FILES: DOCUMENTATION
  410.  
  411. (complete 35)
  412.  
  413. (if (< 4 var_icon)
  414.    (
  415.       (copyfiles
  416.          (source (tackon var_docd var_docr))
  417.          (dest docdir)
  418.          (infos) (noposition)
  419.       )
  420.       (copyfiles
  421.          (source (tackon var_docd var_doca))
  422.          (dest docdir)
  423.          (infos) (noposition)
  424.       )
  425.    )
  426.    (
  427.       (copyfiles
  428.          (source (tackon var_docd var_docr))
  429.          (dest docdir)
  430.       )
  431.       (copyfiles
  432.          (source (tackon var_docd var_doca))
  433.          (dest docdir)
  434.       )
  435.    )
  436. )
  437.  
  438. ;***************************
  439. ;** INSTALL FILES: GUI-PREFS
  440.  
  441. (complete 40)
  442.  
  443. (copyfiles
  444.    (source "Prefs/GUI")
  445.    (dest "RAM:")
  446.    (newname "GUI_000")
  447.    (safe)
  448. )
  449.  
  450. (if (= 0 var_cpu)(
  451.    (copyfiles (source "RAM:GUI_000") (dest "RAM:") (newname "GUI") (safe))
  452. ))
  453.  
  454. (if (= 1 var_cpu)(
  455.    (run "InstallTools/SPatch > NIL: -oRAM:GUI -pInstallFiles/GUI_020_030.pch RAM:GUI_000" (safe))
  456. ))
  457.  
  458. (if (= 2 var_cpu)(
  459.    (run "InstallTools/SPatch > NIL: -oRAM:GUI -pInstallFiles/GUI_040.pch RAM:GUI_000" (safe))
  460. ))
  461.  
  462. (if (= 3 var_cpu)(
  463.    (run "InstallTools/SPatch > NIL: -oRAM:GUI -pInstallFiles/GUI_060.pch RAM:GUI_000" (safe))
  464. ))
  465.  
  466. (delete "RAM:GUI_000" (safe))
  467.  
  468. (copyfiles
  469.    (source "RAM:GUI")
  470.    (dest "SYS:Prefs/")
  471.    (noposition)
  472. )
  473.  
  474. (if (< 4 var_icon)(
  475.    (copyfiles
  476.       (source "Prefs/GUI.info")
  477.       (dest "SYS:Prefs/")
  478.       (noposition)
  479.    )
  480. ))
  481.  
  482. (delete "RAM:GUI" (safe))
  483.  
  484. ;**************************
  485. ;** INSTALL FILES: CATALOGS
  486.  
  487. (complete 50)
  488.  
  489. (if (bitand var_lang 1)
  490.    (
  491.       (copyfiles
  492.          (source "Catalogs/italiano/gui.catalog")
  493.          (dest "LOCALE:Catalogs/italiano/")
  494.       )
  495.    )
  496. )
  497.  
  498. ;***********************
  499. ;** INSTALL FILES: ICONS
  500.  
  501. (complete 60)
  502.  
  503. (if (= 1 var_icon)(
  504.    (copyfiles
  505.       (source "NewIcons/GUI.info")
  506.       (dest "SYS:Prefs/")
  507.       (noposition)
  508.    )
  509.    (copyfiles
  510.       (source "NewIcons/doc.info")
  511.       (dest docdir)
  512.       (newname (cat var_docr ".info"))
  513.       (noposition)
  514.    )
  515. ))
  516.  
  517. (if (= 2 var_icon)(
  518.    (copyfiles
  519.       (source "MagicWB/GUI.info")
  520.       (dest "SYS:Prefs/")
  521.       (noposition)
  522.    )
  523.    (copyfiles
  524.       (source "MagicWB/doc.info")
  525.       (dest docdir)
  526.       (newname (cat var_docr ".info"))
  527.       (noposition)
  528.    )
  529. ))
  530.  
  531. (if (= 3 var_icon)(
  532.    (copyfiles
  533.       (source "Iconographics/GUI.info")
  534.       (dest "SYS:Prefs/")
  535.       (noposition)
  536.    )
  537.    (copyfiles
  538.       (source "Iconographics/doc.info")
  539.       (dest docdir)
  540.       (newname (cat var_docr ".info"))
  541.       (noposition)
  542.    )
  543. ))
  544.  
  545. ;******************************
  546. ;** INSTALL FILES: SAMPLE PREFS
  547.  
  548. (complete 70)
  549.  
  550. (if (= 1 var_exa)
  551.    (copyfiles
  552.       (source "Prefs/Presets/")
  553.       (dest "SYS:Prefs/Presets")
  554.       (all) (infos) (noposition)
  555.    )
  556. )
  557.  
  558. ;*******************************************
  559. ;** INSTALL FILES: SAMPLE BITMAP DIRECTORIES
  560.  
  561. (complete 75)
  562.  
  563. (if (= 1 var_bm)
  564.    (copyfiles
  565.       (source "Prefs/BitMaps/")
  566.       (dest bmdir)
  567.       (all) (infos) (noposition)
  568.    )
  569. )
  570.  
  571. ;***************************************
  572. ;** INSTALL FILES: NEW PREFERENCES FILE
  573.  
  574. ;(complete 80)
  575.  
  576. ;(rename "ENVARC:Sys/gui.prefs" "ENVARC:Sys/beta_gui.prefs")
  577. ;(run "InstallTools/ConvertGUIPrefs > NIL: ENVARC:Sys/beta_gui.prefs ENVARC:Sys/gui.prefs")
  578.  
  579. ;*******************
  580. ;** STARTUP-SEQUENCE
  581.  
  582. (complete 90)
  583.  
  584. (if (= 0 var_vp)
  585.    (
  586.       (run (cat "InstallTools/AddLine \"" @default-dest "\""))
  587.       (protect "S:Startup-sequence" "+srwd")
  588.    )
  589. )
  590.  
  591. ;************
  592. ;** WBSTARTUP
  593.  
  594. (complete 95)
  595.  
  596. (if (= 1 var_pwb)(
  597.    (copylib
  598.       (source "Tools/PatchWB/PatchWB")
  599.       (dest "SYS:WBStartup")
  600.       (optional nofail)
  601.    )
  602.    (copyfiles
  603.       (source "Tools/PatchWB/StartPatchWB")
  604.       (dest "SYS:WBStartup")
  605.       (infos) (noposition)
  606.    )
  607. ))
  608.  
  609. ;***************
  610. ;** LAST ADVICES
  611.  
  612. (message msg_advfp)
  613. (message msg_adv1 msg_adv2 msg_adv3)
  614.  
  615. ;***********
  616. ;** READ ME!
  617.  
  618. (complete 99)
  619.  
  620. (run "SYS:Utilities/MultiView \"Read me!\"" (safe))
  621.  
  622. ;*******
  623. ;** DONE
  624.  
  625. (complete 100)
  626. (exit (cat "\n" msg_done msg_done2))
  627.  
  628.